<!-- {include file="header.html"} -->
<div id="currentPosition">
	<p>{lang your_current_position} {lang ads} &raquo; {lang friendlink}</p>
</div>
<div id="rightTop"> 
    <h3>{lang friendlink}</h3> 
    <ul class="subnav">
		<li><a href="friendlink.php">{lang management}</a></li>
        <li><a class="btn1" href="friendlink.php?do=edit"><span>{lang add_or_edit}</span></a></li>
        <li><a href="friendlinktype.php">{lang sorts}</a></li>
    </ul>
</div>
<div class="info">
  <form action="friendlink.php" method="post" id="EditFrm" name="edit_frm">
  <input type="hidden" name="id" value="{$smarty.get.id}">
  <input type="hidden" name="page" value="{$smarty.get.page}" />
    <table class="infoTable">
      <tr>
        <th class="paddingT15"> {lang the_title}{lang colon}</th>
        <td class="paddingT15 wordSpacing5">          
		<input class="infoTableInput2" name="data[friendlink][title]" value="{$item.title}" /><label class="field_notice">{lang show_name_n}</label></td>
      </tr>
      <tr>
        <th class="paddingT15"> {lang sorts}{lang colon}</th>
        <td class="paddingT15 wordSpacing5">
		<select name="data[friendlink][friendlinktype_id]">
		{html_options options=$FriendlinkTypes selected=$item.friendlinktype_id}
		</select>
		</td>
      </tr>
      <tr>
        <th class="paddingT15"> {lang in_industry}{lang colon}</th>
        <td class="paddingT15 wordSpacing5">
        <span id="dataIndustry">
					<select name="industry[id][1]" id="dataIndustryId1" class="level_1" style="width:120px;" ></select>
					<select name="industry[id][2]" id="dataIndustryId2" class="level_2" style="width:120px;"></select>
					<select name="industry[id][3]" id="dataIndustryId3" class="level_3" style="width:120px;"></select>
		</span>
        </td>
      </tr>
      <tr>
        <th class="paddingT15"> {lang in_area}</th>
        <td class="paddingT15 wordSpacing5">
			<span id="dataArea">
						<select name="area[id][1]" id="dataAreaId1" class="level_1" style="width:120px;" ></select>
						<select name="area[id][2]" id="dataAreaId2" class="level_2" style="width:120px;"></select>
						<select name="area[id][3]" id="dataAreaId3" class="level_3" style="width:120px;"></select>
			</span>        
        </td>
      </tr>
      <tr>
        <th class="paddingT15"> {lang link_url}{lang colon}</th>
        <td class="paddingT15 wordSpacing5"><input name="data[friendlink][url]" value="{$item.url}" /></td>
      </tr>      
      <tr>
        <th class="paddingT15">{lang logo}{lang picture}{lang colon}</th>
        <td class="paddingT15 wordSpacing5"><input name="data[friendlink][logo]" value="{$item.logo}" />{if $item.logo}</td><td><img src="{$item.logo}" width="80" />{/if}</td>
      </tr>
      <tr>
        <th class="paddingT15"> {lang whether_or}{lang show_it}{lang colon}</th>
        <td class="paddingT15 wordSpacing5"><!--{html_radios name="data[friendlink][status]" options=$AskAction checked=$item.status|default:1 separator=""}--></td>
      </tr>
      <tr>
        <th class="paddingT15"> {lang display_order}{lang colon}</th>
        <td class="paddingT15 wordSpacing5"><input class="infoTableInput2" name="data[friendlink][priority]" value="{$item.priority}" /></td>
      </tr>
      <tr>
        <th></th>
        <td class="ptb20">
			<input class="formbtn" type="submit" name="save" value="{lang save}" />		</td>
      </tr>
    </table>
  </form>
</div>
<script>
var cache_path = "../";
var app_language = '{$AppLanguage}';
var area_id1 = {$item.area_id1|default:0} ;
var area_id2 = {$item.area_id2|default:0} ;
var area_id3 = {$item.area_id3|default:0} ;
var industry_id1 = {$item.industry_id1|default:0} ;
var industry_id2 = {$item.industry_id2|default:0} ;
var industry_id3 = {$item.industry_id3|default:0} ;
</script>
<script src="../scripts/multi_select.js" charset="{$charset}"></script>
<script src="../scripts/script_area.js"></script>
<script src="../scripts/script_industry.js"></script>
<!-- {include file="footer.html"} -->